﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using HWR_Ants.Forms;
using HWR_Ants.Classes;

namespace HWR_Ants
{
    static class Program
    {
        /// <summary>
        /// Der Haupteinstiegspunkt für die Anwendung.
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            if (args.Length > 0)
            {
                try
                {
                    TSP_File tsp = new TSP_File(args[0]);
                    if (tsp != null)
                    {
                        Application.Run(new fHWR_Ants(tsp));
                    }
                }
                catch
                {
                    MessageBox.Show("Wrong arguments given...");
                    Application.Run(new fHWR_Ants());
                }
            }
            else
            {
                Application.Run(new fHWR_Ants());
            }
        }
    }
}
